﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true"
    CodeBehind="DanhSachDanhMucCon.aspx.cs" Inherits="GreenLife.Admin.DanhSachDanhMucCon" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <form id="Form1" runat="server">
    <asp:DropDownList ID="ddlTower" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlTower_SelectedIndexChanged">
        <%--
                        <asp:ListItem Text="Tower A" Value="Tower A" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="Tower B" Value="Tower B"></asp:ListItem>--%>
    </asp:DropDownList>
    <asp:DropDownList ID="ddlCate" runat="server" AppendDataBoundItems="true" AutoPostBack="true"
        OnSelectedIndexChanged="ddlCate_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:Repeater ID="listSubCategory" runat="server" OnItemCommand="cpRepeaterSubCategory_ItemDataBound">
        <HeaderTemplate>
            <table>
                <thead style="color: Green;">
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="SubCategoryId&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="CategoryId&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text="SubCategoryName&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label5" runat="server" Text="SubCategoryImage&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text="SubCategoryDescription&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label6" runat="server" Text="SubCategoryArea&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label7" runat="server" Text="SubCategoryHuong&nbsp&nbsp"></asp:Label>
                        </td>
                    </tr>
                </thead>
        </HeaderTemplate>
        <ItemTemplate>
            <tbody>
                <tr>
                    <td>
                        <asp:Label ID="lbSubCateId" runat="server" Text='<%# Bind("SubCategoryID") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbCateId" runat="server" Text='<%# Bind("CategoryId") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbSubCateName" runat="server" Text='<%# Bind("SubCategoryName") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Image ID="imgSubCate" Width="100px" Height="100px" runat="server" ImageUrl='<%# Bind("SubCategoryImage") %>' />
                    </td>
                    <td>
                        <asp:Label TextMode="MultiLine" Width="300px" Wrap="false" ID="lbDesc" runat="server"
                            Text='<%# Bind("SubCategoryDescription") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label8" runat="server" Text='<%# Bind("SubCategoryArea") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label9" runat="server" Text='<%# Bind("SubCategoryHuong") %>'></asp:Label>
                    </td>
                    <td>
                        <a href='ChinhSuaDanhMucCon.aspx?id=<%# DataBinder.Eval(Container.DataItem ,"SubCategoryID") %>'>
                            Update</a>
                    </td>
                    <td>
                        <asp:LinkButton ID="lnkDelete" CommandName="delete" OnClientClick='javascript:return confirm("Are you sure you want to delete?")'
                            CommandArgument='<%# DataBinder.Eval(Container.DataItem, "SubCategoryID") %>'
                            runat="server">Delete</asp:LinkButton>
                    </td>
                </tr>
            </tbody>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <cc1:CollectionPager ID="CollectionPager1" runat="server" BackNextDisplay="HyperLinks"
        BackNextLinkSeparator="" BackNextLocation="Left" BackText="" LabelText="" LastText=""
        NextText="" PageNumbersDisplay="Numbers" PageNumbersSeparator="&nbsp;" PagingMode="QueryString"
        ResultsFormat="" ResultsLocation="Bottom">
    </cc1:CollectionPager>
    </form>
</asp:Content>
